import java.io.IOException;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;

public class scriptgen {

	public static void main(String argv[]) throws IOException, InterruptedException{
		File out = new File("Arrayscript.sh");
		FileOutputStream is = new FileOutputStream(out);
        	OutputStreamWriter osw = new OutputStreamWriter(is);    
        	Writer w = new BufferedWriter(osw);
		w.write("echo START > resultArray.txt \n");
		for (int size=10000; size<200000000;size*=3)
		{
				w.write("java Array 10 "+size+" 1 >> resultArray.txt \n");
				w.write("echo Done" +size+"\n");
		}
		w.close();

	}
}
		

